<?php
namespace app\common\validate;

use think\Validate;
class Pages extends Validate
{
    protected $rule = [
        'name|页面名称'       => 'require|max:30',
        'title_en|Content Title'     => 'max:120',
        'title_cn|内容标题' => 'max:120',
        'keyword_en|Keyword'        => 'max:80',
        'keyword_cn|关键字'    => 'max:80',
    ];

    protected $message = [
        'name.require'    => '必须填写页面信息',
        'name.max'     => '页面名称最大长度为30',
        'title_en.max'	=> '内容标题最大长度为120',
		'title_cn.max'	=> '内容标题最大长度为120',
		'keyword_en.max'	=> '关键字最大长度为80',
		'keyword_cn.max'	=> '关键字最大长度为80',
    ];
}